<!--<template>-->
<!--  <div class="home">-->
<!--    <div class="title-container">-->
<!--      <div class="search-content">-->
<!--        <el-form :model="searchModel" :inline="true">-->
<!--          <el-form-item>-->
<!--            <el-input-->
<!--              v-model="searchModel.userName"-->
<!--              :disabled="detailsDisabled"-->
<!--              placeholder="请输入姓名"-->
<!--              prefix-icon="el-icon-search"-->
<!--            />-->
<!--          </el-form-item>-->
<!--        </el-form>-->
<!--        <div class="search-btn">-->
<!--          <el-button-->
<!--            type="primary"-->
<!--            icon="el-icon-search"-->
<!--            @click="searchClick"-->
<!--            size="medium"-->
<!--          >搜索-->
<!--          </el-button>-->
<!--        </div>-->
<!--      </div>-->
<!--    </div>-->

<!--    <el-card>-->
<!--      <div class="addAccount">-->
<!--        <perButton label="新建" type="primary" icon="el-icon-plus" size="medium" perms="PT_USER_ADD"-->
<!--                   @click="handlerAccount"></perButton>-->
<!--        <el-button-->
<!--          type="success"-->
<!--          icon="el-icon-refresh"-->
<!--          size="medium"-->
<!--          @click="refresh"-->
<!--        >刷新-->
<!--        </el-button>-->
<!--      </div>-->
<!--      <el-table-->
<!--        v-loading="loading"-->
<!--        :data="tableData"-->
<!--        border-->
<!--        style="width: 100%;"-->
<!--        class="elTable"-->
<!--      >-->
<!--        <el-table-column type="index" label="序号" width="50" align="center"/>-->
<!--&lt;!&ndash;        <el-table-column prop="dicCode" label="字典编码" align="center"/>&ndash;&gt;-->
<!--        <el-table-column prop="dicName" label="字典名称" align="center"/>-->
<!--        <el-table-column prop="dicDes" label="字典描述" show-overflow-tooltip align="center"/>-->
<!--        <el-table-column prop="createByName" label="创建人" align="center"/>-->
<!--        <el-table-column label="创建时间" align="center" prop="createTime">-->
<!--          <template slot-scope="scope">-->
<!--            {{ scope.row.createTime }}-->
<!--          </template>-->
<!--        </el-table-column>-->
<!--        <el-table-column prop="updateByName" label="更新人" align="center"/>-->
<!--        <el-table-column label="更新时间" align="center" prop="createTime">-->
<!--          <template slot-scope="scope">-->
<!--            {{ scope.row.updateTime }}-->
<!--          </template>-->
<!--        </el-table-column>-->
<!--        <el-table-column label="操作" width="320" align="center">-->
<!--          <template #default="{ row }">-->
<!--            <perButton label="配置建议字典" type="primary" size="mini" perms="PT_USER_ADD"-->
<!--                       @click="config(row)"></perButton>-->
<!--            <perButton label="编辑" type="warning" size="mini" perms="PT_USER_EDIT"-->
<!--                       @click="handlerEdit(row)"></perButton>-->
<!--            <perButton label="删除" type="danger" size="mini" perms="PT_USER_DEL"-->
<!--                       @click="handlerDelete(row)"></perButton>-->
<!--          </template>-->
<!--        </el-table-column>-->
<!--      </el-table>-->
<!--      <pagination-->
<!--        class="pagination"-->
<!--        :total="count"-->
<!--        :page.sync="pageIndex"-->
<!--        :limit.sync="pageSize"-->
<!--        @pagination="getAccountData"-->
<!--      />-->
<!--    </el-card>-->

<!--    &lt;!&ndash; 弹框 &ndash;&gt;-->
<!--    <yc-dialog ref="ycDialog" :dialogTitle="dialogTitle" :centerTitle="centerTitle">-->
<!--      <template #content>-->
<!--        <div class="dialog-content">-->
<!--          <el-form-->
<!--            ref="newAccountFormRef"-->
<!--            :rules="newAccountModelRules"-->
<!--            :model="newAccountModel"-->
<!--            :disabled="detailsDisabled"-->
<!--            label-width="100px"-->
<!--          >-->
<!--            <el-form-item label="字典名称" prop="dicName">-->
<!--              <el-input v-model="newAccountModel.dicName"/>-->
<!--            </el-form-item>-->
<!--            <el-form-item label="字典描述" prop="dicDes">-->
<!--              <el-input v-model="newAccountModel.dicDes" :rows="2" type="textarea"/>-->
<!--            </el-form-item>-->
<!--          </el-form>-->
<!--        </div>-->
<!--      </template>-->
<!--      <template #footer>-->
<!--        <el-button type="primary" :loading="addOrUpdateLoading" @click="dialogSave">确定</el-button>-->
<!--        <el-button @click="$refs.ycDialog.dialogVisible = false">取消</el-button>-->
<!--      </template>-->
<!--    </yc-dialog>-->

<!--    &lt;!&ndash; 配置建议字典 &ndash;&gt;-->
<!--    <yc-dialog ref="configDialog" :dialogTitle="dialogTitle" :show-center="false" :centerTitle="centerTitle">-->
<!--      <template #content>-->
<!--        <div class="dialog-content">-->
<!--          <el-form-->
<!--            ref="newConfigFormRef"-->
<!--            :rules="newConfigModelRules"-->
<!--            :model="newConfigModel"-->
<!--            :disabled="detailsDisabled"-->
<!--            label-width="100px"-->
<!--          >-->
<!--            <el-form-item label="字典名称" prop="dicName">-->
<!--              <el-input :disabled="true" v-model="newConfigModel.dicName"/>-->
<!--            </el-form-item>-->
<!--            <el-form-item label="处理方式" prop="childCodeList">-->
<!--              <el-checkbox v-model="checkAll" :indeterminate="isIndeterminate"-->
<!--                           @change="handleCheckAllChange">全选-->
<!--              </el-checkbox>-->
<!--              <el-checkbox-group v-model="newConfigModel.childCodeList" @change="checkGroupChange">-->
<!--                <div v-for="item in checkDataList" :key="item.dicCode">-->
<!--                  <el-checkbox :label="item.dicCode">{{item.dicDes}}</el-checkbox>-->
<!--                </div>-->
<!--              </el-checkbox-group>-->
<!--            </el-form-item>-->
<!--          </el-form>-->
<!--        </div>-->
<!--      </template>-->
<!--      <template #footer>-->
<!--        <el-button type="primary" :loading="addOrUpdateLoading" @click="configDialogSave">确定</el-button>-->
<!--        <el-button @click="$refs.configDialog.dialogVisible = false">取消</el-button>-->
<!--      </template>-->
<!--    </yc-dialog>-->

<!--    &lt;!&ndash; 封装操作后弹框 &ndash;&gt;-->
<!--    <global-message-->
<!--      v-if="isGlobalMessageShow"-->
<!--      @receive="receive"-->
<!--      :message="message"-->
<!--    />-->
<!--  </div>-->
<!--</template>-->

<!--<script>-->
<!--  import ycDialog from "@/components/pageDialog"-->
<!--  import perButton from "@/components/permissionButton"-->
<!--  import {-->
<!--    queryPage,-->
<!--    insertByModel,-->
<!--    updateByModel,-->
<!--    deleteByModel,-->
<!--    queryListBySysAdvise,-->
<!--    setFaultExplanation-->
<!--  } from "@/api/basicsMessage/polymerization"-->

<!--  export default {-->
<!--    components: {-->
<!--      ycDialog,-->
<!--      perButton-->
<!--    },-->
<!--    data() {-->
<!--      return {-->
<!--        isGlobalMessageShow: false,-->
<!--        message: "",-->

<!--        projectCode: "",-->
<!--        tableData: [],-->
<!--        count: 0,-->
<!--        pageIndex: 1,-->
<!--        pageSize: 10,-->
<!--        loading: false,-->

<!--        searchModel: {-->
<!--          userName: "",-->
<!--          status: null //正常/停用状态（全部）-->
<!--        },-->

<!--        newAccountModel: {-->
<!--          dicName: "",-->
<!--          dicDes: "",-->
<!--          id: 0-->
<!--        },-->
<!--        newAccountModelRules: {-->
<!--          dicName: [{required: true, message: "请输入字典名称", trigger: "blur"}],-->
<!--          dicDes: [{required: true, message: "请输入字典描述", trigger: "blur"}]-->
<!--        },-->

<!--        dialogTitle: "",-->
<!--        centerTitle: "",-->

<!--        newConfigModel: {-->
<!--          dicName: "",-->
<!--          dicCode: "",-->
<!--          childCodeList: []-->
<!--        },-->
<!--        newConfigModelRules: {-->
<!--          dicName: [{required: true, message: "请输入字典名称", trigger: "blur"}],-->
<!--          childCodeList: [-->
<!--            {type: 'array',required: true, message: "请选择处理方式", trigger: "change"}-->
<!--          ],-->
<!--        },-->
<!--        checkDataList: [],-->
<!--        checkAll: false,-->
<!--        isIndeterminate: false,-->

<!--        detailsDisabled: false,-->
<!--        addOrUpdateLoading: false-->
<!--      }-->
<!--    },-->
<!--    created() {-->
<!--      this.projectCode = sessionStorage.getItem('projectCode')-->

<!--      this.getAccountData()-->
<!--    },-->
<!--    methods: {-->
<!--      /**-->
<!--       * 获取表格方法-->
<!--       */-->
<!--      async getAccountData(tableInfo) {-->
<!--        this.loading = true-->
<!--        if (tableInfo) {-->
<!--          const {userName, status} = tableInfo-->
<!--          const {object} = await queryPage({-->
<!--            projectCode: this.projectCode,-->
<!--            pageIndex: this.pageIndex,-->
<!--            pageSize: this.pageSize,-->
<!--            dicType: 1,-->
<!--            userName,-->
<!--            status-->
<!--          })-->
<!--          this.tableData = object.data-->
<!--          this.count = object.count-->
<!--          this.loading = false-->
<!--        } else {-->
<!--          const {object} = await queryPage({-->
<!--            pageIndex: this.pageIndex,-->
<!--            pageSize: this.pageSize,-->
<!--            dicType: 1,-->
<!--          })-->
<!--          this.tableData = object.data-->
<!--          this.count = object.count-->
<!--          this.loading = false-->
<!--        }-->
<!--      },-->
<!--      pagination(pageItem) {-->
<!--        this.getAccountData(pageItem.page, pageItem.limit)-->
<!--      },-->
<!--      // 搜索按钮-->
<!--      async searchClick() {-->
<!--        this.getAccountData(this.searchModel)-->
<!--      },-->


<!--      /**-->
<!--       * 删除按钮-->
<!--       */-->
<!--      async handlerDelete({id}) {-->
<!--        this.$confirm("确定删除此数据吗", "删除操作", {-->
<!--          confirmButtonText: "确定",-->
<!--          cancelButtonText: "取消",-->
<!--          type: "error",-->
<!--          center: true-->
<!--        }).then(async () => {-->
<!--          const {message, status} = await deleteByModel({id})-->
<!--          if (status == "200") {-->
<!--            this.getAccountData()-->
<!--            this.isGlobalMessageShow = true-->
<!--            this.message = "success"-->
<!--          } else {-->
<!--            this.message = "error"-->
<!--          }-->
<!--        })-->
<!--      },-->


<!--      /**-->
<!--       * 新建-->
<!--       * */-->
<!--      async handlerAccount() {-->
<!--        this.dialogTitle = "添加"-->
<!--        this.centerTitle = "添加"-->

<!--        this.detailsDisabled = false-->
<!--        this.addOrUpdateLoading = false-->
<!--        this.$refs.ycDialog.dialogVisible = true-->

<!--        Object.keys(this.newAccountModel).forEach((item) => {-->
<!--          this.newAccountModel[item] = ""-->
<!--        })-->
<!--      },-->

<!--      /**-->
<!--       * 修改-->
<!--       */-->
<!--      handlerEdit(row) {-->
<!--        this.dialogTitle = "编辑"-->
<!--        this.centerTitle = "编辑"-->

<!--        this.newAccountModel.id = row.id-->
<!--        this.newAccountModel.dicName = row.dicName-->
<!--        this.newAccountModel.dicDes = row.dicDes-->

<!--        this.addOrUpdateLoading = false-->
<!--        this.detailsDisabled = false-->
<!--        this.$refs.ycDialog.dialogVisible = true-->
<!--      },-->
<!--      dialogSave() {-->
<!--        this.$refs.newAccountFormRef.validate(async (v) => {-->
<!--          if (v) {-->
<!--            this.addOrUpdateLoading = true-->
<!--            if (this.detailsDisabled) {-->
<!--              // 详情的确定-->
<!--              this.$refs.ycDialog.dialogVisible = false-->
<!--            } else if (this.newAccountModel.id) {-->
<!--              const {message, status} = await updateByModel({...this.newAccountModel, dicType: 1})-->
<!--              if (status == 200) {-->
<!--                this.getAccountData()-->
<!--                this.$refs.ycDialog.dialogVisible = false-->
<!--                this.$message.success(message)-->
<!--              }-->
<!--            } else {-->
<!--              const {message, status} = await insertByModel({...this.newAccountModel, dicType: 1})-->
<!--              if (status == 200) {-->
<!--                this.getAccountData()-->
<!--                this.$refs.ycDialog.dialogVisible = false-->
<!--                this.$message.success(message)-->
<!--              }-->
<!--            }-->
<!--            this.addOrUpdateLoading = false-->
<!--          }-->
<!--        })-->
<!--      },-->

<!--      // 配置建议字典-->
<!--      async config(row) {-->
<!--        this.dialogTitle = "配置建议字典"-->
<!--        this.centerTitle = "配置建议字典"-->

<!--        await this.queryListBySysAdvise()-->

<!--        this.newConfigModel.dicName = row.dicName-->
<!--        this.newConfigModel.dicCode = row.dicCode-->
<!--        if(row.childCodes) {-->
<!--          let value = row.childCodes.split(',')-->

<!--          this.newConfigModel.childCodeList = value-->

<!--          let checkedCount = value.length-->
<!--          this.checkAll = checkedCount === this.checkDataList.length-->
<!--          this.isIndeterminate = checkedCount > 0 && checkedCount < this.checkDataList.length-->
<!--        } else {-->
<!--          this.checkAll = false-->
<!--          this.isIndeterminate = false-->
<!--          this.newConfigModel.childCodeList = []-->
<!--        }-->

<!--        this.detailsDisabled = false-->
<!--        this.addOrUpdateLoading = false-->
<!--        this.$refs.configDialog.dialogVisible = true-->
<!--      },-->
<!--      async queryListBySysAdvise() {-->
<!--        await queryListBySysAdvise().then(res=> {-->
<!--          this.checkDataList = res.object-->
<!--        })-->
<!--      },-->
<!--      // 全选-->
<!--      handleCheckAllChange(val) {-->
<!--        this.newConfigModel.childCodeList = val ? this.checkDataList.map(item => item.dicCode) : []-->
<!--        this.isIndeterminate = false-->
<!--      },-->
<!--      checkGroupChange(value) {-->
<!--        let checkedCount = value.length-->
<!--        this.checkAll = checkedCount === this.checkDataList.length-->
<!--        this.isIndeterminate = checkedCount > 0 && checkedCount < this.checkDataList.length-->
<!--      },-->
<!--      configDialogSave() {-->
<!--        this.$refs.newConfigFormRef.validate(async (v) => {-->
<!--          if (v) {-->
<!--            this.addOrUpdateLoading = true-->
<!--            const {dicCode, childCodeList} = this.newConfigModel-->
<!--            const {message, status} = await setFaultExplanation({-->
<!--              dicCode,-->
<!--              childCodes: childCodeList.toString()-->
<!--            })-->
<!--            if (status == 200) {-->
<!--              this.getAccountData()-->
<!--              this.$refs.configDialog.dialogVisible = false-->
<!--              this.$message.success(message)-->
<!--            }-->
<!--            this.addOrUpdateLoading = false-->
<!--          }-->
<!--        })-->
<!--      },-->

<!--      /**-->
<!--       * 刷新-->
<!--       */-->
<!--      refresh() {-->
<!--        this.searchModel = {-->
<!--          userName: "",-->
<!--          status: null-->
<!--        }-->
<!--        this.getAccountData()-->
<!--      },-->

<!--      /**-->
<!--       * globalMessage的知道按钮的方法-->
<!--       * */-->
<!--      receive() {-->
<!--        this.isGlobalMessageShow = false-->
<!--      },-->
<!--    }-->
<!--  }-->
<!--</script>-->

<!--<style lang="scss" scoped>-->
<!--  .status {-->
<!--    display: inline-block;-->
<!--    padding: 0 10px;-->
<!--  }-->

<!--  .title-container {-->
<!--    display: flex;-->
<!--    justify-content: flex-end;-->
<!--    height: 60px;-->

<!--    .search-content {-->
<!--      margin-left: 20px;-->
<!--      display: flex;-->
<!--    }-->

<!--    .addAccount {-->
<!--      margin: 10px 20px;-->
<!--    }-->
<!--  }-->

<!--  .pagination {-->
<!--    display: flex;-->
<!--    justify-content: flex-end;-->
<!--  }-->



<!--  .footer {-->
<!--    height: 360px;-->
<!--    display: flex;-->
<!--    align-items: flex-end;-->
<!--    // justify-content: st-end;-->
<!--    padding: 5px 20px;-->
<!--  }-->
<!--</style>-->
